package com.zansc.longd.controller;

import com.zansc.longd.model.base.bean.ResponseBean;
import com.zansc.longd.model.base.in.GoodsIn;
import com.zansc.longd.service.s.GoodsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("goods")
public class GoodsController {
    
    private GoodsService goodsService;
    
    @PostMapping("add")
    public ResponseBean add(GoodsIn goodsIn) {
        int add = goodsService.add(goodsIn);
        return ResponseBean.success(200, "插入成功");
    }
    
}
